import pygame

class Settings:
    # 系统参数
    img_path = "img/"
    events_map = {
        pygame.K_RIGHT  : "moving_right",
        pygame.K_LEFT   : "moving_left",
        pygame.K_UP     : "moving_up",
        pygame.K_DOWN   : "moving_down"
    }
    # 界面参数
    bg_color = (0, 122, 204)
    # 飞机参数
    fly_speed = 2.0
    plane_limit = 3
    # 子弹参数
    bullet_speed = 2.0
    bullet_width = 3
    bullet_height = 15
    bullet_color = (255, 255, 255)
    bullet_allowed = 10
    # 外星人参数
    alien_speed = 1.0
    fleet_drop_speed = 10
    fleet_direction = 1

    def __init__(self):
        self.width = 1200
        self.height = int(1200 * 9 / 16)
    